//
//  QSProblemReportFirstCell.h
//  DigitalEconomy_iOS
//
//  Created by Ding on 2020/3/25.
//  Copyright © 2020 DingC. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TZImagePickerController.h"
#import "QSProblemListModel.h"
NS_ASSUME_NONNULL_BEGIN
typedef void(^DidSelectProblemTypeFinish)(NSString *ptName, NSString *ptId);

typedef void(^DidTitleInputFinish)(NSString *problemTitle);

typedef void(^DidDescriptionInputFinish)(NSString *problemDescription);

typedef void(^DidSelectImageFinish)(NSArray *imageArr);

typedef void(^DidDeleteProblemBlock)(UIButton *deleteButton);

@interface QSProblemReportFirstCell : UITableViewCell<UITextViewDelegate, UITextFieldDelegate,UICollectionViewDataSource, UICollectionViewDelegate, TZImagePickerControllerDelegate>
@property (weak, nonatomic) IBOutlet UILabel *typeLabel;
@property (weak, nonatomic) IBOutlet UILabel *selectActionLabel;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UITextField *titleTextField;
@property (weak, nonatomic) IBOutlet UILabel *describeLabel;
@property (weak, nonatomic) IBOutlet DcTextView *describeTextView;
@property (weak, nonatomic) IBOutlet UILabel *imageDescribeLabel;
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;

@property (nonatomic, copy)NSArray *problemTypeArr;

@property (nonatomic, copy)DidSelectProblemTypeFinish didSelectProblemTypeFinish;

@property (nonatomic, copy)DidTitleInputFinish didTitleInputFinish;

@property (nonatomic, copy)DidDescriptionInputFinish didDescriptionInputFinish;

@property (nonatomic, copy)DidSelectImageFinish didSelectImageFinish;

@property (nonatomic, strong) NSMutableArray *picArr;
@property (nonatomic, strong) NSMutableArray *assestArray;

@property (nonatomic, assign) NSInteger type;//1为新增走访里快捷提交类型
@property (nonatomic, assign) NSInteger maxNum;

@property (strong, nonatomic) IBOutlet UIButton *deletButton;

@property (nonatomic, copy)DidDeleteProblemBlock didDeleteProblemBlock;


@property (nonatomic, copy)QSProblemListModel *model;

- (void)initView;
@end

NS_ASSUME_NONNULL_END
